﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchBar.ascx.cs" Inherits="UserControls_SearchBar" %>
<%@ Register src="HotWord.ascx" tagname="HotWord" tagprefix="uc1" %>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    <Scripts>
        <asp:ScriptReference Path="~/Javascripts/Longbow.Web.UI.Watermark.js" />
        <asp:ScriptReference Path="~/Javascripts/Longbow.UI.HyperlinkBehavior.js" />
        <asp:ScriptReference Path="~/Javascripts/Longbow.UI.FireEnterKeyBehavior.js" />
    </Scripts>
</asp:ScriptManagerProxy>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
    SelectMethod="RetrieveList" TypeName="Gammar.Price.Business.CategoryLogic"></asp:ObjectDataSource>
<div class="se_b3">
    <div class="se_b2">
        <div class="se_b1">
            <input id="TextBoxSearchContent" name="TextBoxSearchContent" class="se" value="<%= KeyWord%>" />
            <asp:Button ID="ButtonSearch" CssClass="q" runat="server" Text="比价吧 搜索" OnClick="ButtonSearch_Click" />
    </div>
</div>
</div>
<div class="sc4"><uc1:HotWord ID="HotWord1" runat="server" /></div>
<script type="text/javascript" language="javascript">
    function searchLoad() {
        $create(Longbow.Web.UI.Watermark, {id: "TextBoxSearchContent", watermarkText: "比价格来比价吧", watermarkCss: "wk"}, null, null, $get('TextBoxSearchContent'));
        var sb = $get('TextBoxSearchContent').nextSibling.nextSibling;
        $create(Longbow.UI.FireEnterKeyBehavior, {fireButton: sb}, null, null, $get('TextBoxSearchContent'));
    }
    Sys.Application.add_load(searchLoad);
</script>

